package me.tianle.login.mapper;

import me.tianle.login.model.Permission;
import me.tianle.login.model.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {

    User findByUsername(String username);

    User findRole(Integer uid);

    List<Permission> findPermission(Integer uid);

}
